<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>题库管理</title>
    <link rel="stylesheet" th:href="@{/static/css/layui.css}">
</head>
<body>
    <script th:if="${session.tUser.URole eq '0'}">window.location.href="/index"</script>
    <form class="layui-form">
        <div class="layui-form-item">

            <label class="layui-form-label">题目</label>
            <div class="layui-input-inline">
                <input type="text" name="qTitle" value="" placeholder="请输入题目" autocomplete="off" class="layui-input qTitle">
            </div>

            <label class="layui-form-label">创建人</label>
            <div class="layui-input-inline">
                <select class="uId" name="uId">
                    <option></option>
                    <option th:each="creater: ${creaters}" th:value="${creater.UId}" th:text="${creater.UName}"></option>
                </select>
            </div>

            <label class="layui-form-label">题目类型</label>
            <div class="layui-input-inline">
                <select class="qType" name="qType">
                    <option></option>
                    <option value="1">单选题</option>
                    <option value="2">多选题</option>
                    <option value="3">简答题</option>
                </select>
            </div>

            <label class="layui-form-label">题目状态</label>
            <div class="layui-input-inline">
                <select class="qStatus" name="qStatus">
                    <option></option>
                    <option value="0">禁用</option>
                    <option value="1">启用</option>
                </select>
            </div>

            <div class="layui-input-inline">
                <button type="button" class="layui-btn layui-btn-normal do_search">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>

        </div>
    </form>

    <table class="layui-hide"  id="testTable" lay-data="{id: 'testTable'}" lay-filter="test"></table>

    <script type="text/html" id="toolbarDemo">
        <div class="layui-btn-container">
            <button class="layui-btn layui-btn-sm" lay-event="addQuestion">创建题目</button>
            <button class="layui-btn layui-btn-sm" lay-event="reloadPage">刷新</button>
        </div>
    </script>

    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="ban">状态</a>
    </script>

    <script type="text/javascript" th:src="@{/static/layui.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/jquery-3.2.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/mouseClick.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/admin/questionList.js}"></script>
</body>
</html>